package m.meiweitech.com.rocket.entities

/**
 * @author WEN
 * @Description:
 * @date 2021/9/20 9:05
 */


enum class PrinterType(val prefix:String) {

    DP("DP-230L"), HM("HM-A300");

    companion object{

        fun strParsePrinterType(fullName: String): PrinterType {
            values().forEach {
                if (fullName.contains(it.prefix)) {
                    return it
                }
            }
            return HM
        }

    }

}
